package com.da.web.dorm_room.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.da.cache.MyCache;
import com.da.web.dorm_room.entity.DormRoom;
import com.da.web.dorm_room.entity.RoomTree;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author da
 * @time 2023/12/9 下午 5:03
 */
@CacheNamespace(implementation = MyCache.class, eviction = MyCache.class)
public interface DormRoomMapper extends BaseMapper<DormRoom> {
    List<RoomTree> getRoomTree(@Param("storeyId") Long storeyId);

}
